<script type="text/javascript">
	jQuery(function($) { $("ul.jt-tabs").tabs("div.jt-panes > div"); });
</script>

<form action="" method="post">

	<ul class="jt-tabs"><?
	
		foreach($DATA['langs'] as $lang) {
			?><li><a href="#<?=$lang['text']?>"><?=$lang['assoc']?></a></li><? 
		} 
		
	?></ul>
	
	<div class="jt-panes">
	
		<? $t = true; 
			foreach($DATA['langs'] as $lang) { $l = $lang['text'];
	
			?><div class="jt-pane" style="<?=$t ? "display:block" : ""?>">

				<p><label><?=t("Search field placeholder")?><br />
					<span class="description">Default content for the Search field</span><br />
					<input type="text" class="wide" name="placeholder[<?=$l?>]" value="<?=hdat('settings', 'data', $l, 'placeholder')?>" />
				</label></p>

				<p><label><?=t("Loading search results text")?><br />
					<input type="text" class="wide" name="loading[<?=$l?>]" value="<?=hdat('settings', 'data', $l, 'loading')?>" />
				</label></p>
				
				<p><label><?=t("Message when nothing was found")?><br />
					<span class="description">Why so and what to do now?</span><br />
					<textarea class="wide" name="e_nothing_found[<?=$l?>]"><?=dat('settings', 'data', $l, 'e_nothing_found')?></textarea>
				</label></p>

				<p><label><?=t("Message when no search keyword was entered")?><br />
					<span class="description">How to use the search form?</span><br />
					<textarea class="wide" name="e_empty_search[<?=$l?>]"><?=dat('settings', 'data', $l, 'e_empty_search')?></textarea>
				</label></p>
				
			</div><? 
		
		$t = false; } ?>
	
	</div>

	<fieldset>
		<legend> Yet another settings </legend>
				

		<p><label><?=t("Google API Key")?>
			<input type="text" name="api_key" class="xwide" value="<?=hdat('settings', 'api_key')?>">
		</label></p>
	
		<p><label><?=t("Domain name to search in")?>
			<input type="text" name="domain" class="wide" value="<?=hdat('settings', 'domain')?>">
		</label></p>
	
		<p><label><?=t("Results per page")?>
			<input type="text" name="per_page" class="narrow" value="<?=hdat('settings', 'per_page')?>">
		</label></p>

	</fieldset>

	<p><input type="submit" name="editor_save" value="Save" /></p>

</form>
